<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <h1>我是index.htmml</h1>
  <button id="stat">xingn</button>
  <script src="axios.js"></script>
  <script>
    !(async () => {
      let data = await axios.get('/msg')
      console.log(data.data)
      stat.onclick = function () {
        alert(JSON.stringify(data.data))
      }
    })()


  </script>
</body>

</html>